/**
 * 首页的接口
 */

import base from 'Api/baseApi'

export default class HomeApi extends base {
    // 获取商城主页信息
    static async GetIndexData(params) {
        let res = await this.get('vshop', 'StoreConfig/GetIndexData', params)
        return res
    }
    // 获取微页面信息
    static async StoreConfig(params) {
        let res = await this.get('vshop', 'StoreConfig/GetPageData', params)
        return res
    }
    // 微页面获取自动选择商品
    static async getAutoSelectProduct(params) {
        let res = await this.postJson('vshop', 'Product/GetAutoSelectProduct', params)
        return res 
    }
    //微页面获取手动选择商品
    static async GetSelectProduct(params) {
        let res = await this.postJson('vshop', 'Product/GetSelectProduct', params)
        return res 
    }
}